home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / MacDOS 1.0.1 / MacDOS™ 1.0.1 / MacDOS™ 1.0.1.rsrc / TEXT_163_READ.txt < prev    next >
Encoding:
Text File  |  1993-10-23  |  626 b   |  14 lines

  1. Reads a line of text from a file opened with OPEN. (MacDOS only)
  2.  
  3. READ fileID [var]
  4.  
  5.  fileID  is the number returned by OPEN.
  6.          The file can be closed with the command CLOSE and is automatically
  7.          closed when the EOF is read.
  8.  var     is the name of the global variable where the line is to be stored.
  9.          If it is missing, the line is displayed on the screen.
  10.          READ strips the newline character (CR) at the end of each line
  11.          containing more than one character, and replaces it with a space
  12.          if the line only contains the CR. This guarantees that a line is
  13.          always returned.
  14.